package ${filePackageName};

/**
 * 定义常量类
 * @author ${projectAuthor}
 * @version 1.0
 * @date ${nowDate}
 */
public class ConstantUtil {

    /**
     * 请求中header中的token参数
     */
    public final static String DEFAULT_AUTH_TOKEN = "Authorization";

    /**
     * 请求中header中的lang参数
     */
    public final static String HEADER_PARAM_LANGUAGE = "lang";

    /**
     * 语言集合
     */
    public static String[] LANGUAGES = new String[]{"zh_CN","en_US","ja_JP"};

    /**
     * 系统管理员 编码
     */
    public final static String ROLE_CODE_ADMINISTRATOR="SUPERADMIN";

    /**
     * 数据有效状态 Y
     */
    public final static String IS_VALID_Y = "Y";

    /**
     * 数据有效状态 N
     */
    public final static String IS_VALID_N = "N";


    /**
     * 客户端类型PC
     */
    public final static String CUST_TYPE_PC = "PC";

    /**
     * 客户端类型ANDROID
     */
    public final static String CUST_TYPE_ANDROID = "ANDROID";

    /**
     * 客户端类型IOS
     */
    public final static String CUST_TYPE_IOS= "IOS";

    /**
     * 系统标识 sysCode
     */
    public final static String DEFAULT_SYS_CODE= "${projectName}";

    /**
     * redis存入的key 字典map
     */
    public static final String REDIS_KEY_DICT_MAP=DEFAULT_SYS_CODE+"_dict_list_map";

    /**
     * redis存入的key 字典树形集合
     */
    public static final String REDIS_KEY_DICT_TREE_LIST=DEFAULT_SYS_CODE+"_dict_tree_list";

    /**
     * 模块根节点父级ID
     */
    public static final String DEFAULT_ROOT_PARANT_ID="0";

    /**
     * 模块根节点ID
     */
    public static final String DEFAULT_MODULE_ROOT_ID="0";


    /**
     * 前端表格列表选中属性  LAY_CHECKED
     */
    public static final String LAY_CHECKED_KEY="LAY_CHECKED";

    /**
     * 是否查询所有的标识
     */
    public static final String SELECT_ALL_TYPE="all";


    /**
     * 日志类型 登录日志
     */
    public static final String LOG_TYPE_LOGIN="login_log";


    /**
     * 日志类型 操作日志
     */
    public static final String LOG_TYPE_OP="op_log";

    /**
     * 默认上传文件路径
     */
    public static final String UPLOAD_FILES_PATH="files";

    /**
     * 短信验证码默认时间 (秒) 30*60
     */
    public static final long MSG_CODE_SECONDS= 30*60;

    /**
     * 默认短信验证码
     */
    public static final String DEFAULT_MSG_CODE= "1234";

    /**
     * 分隔符逗号,
     */
    public final static String SEPARATOR_COMMA = ",";

    /**
     * 操作成功
     */
    public final static int CODE_200 = 200;

    /**
     * 没有操作权限
     */
    public final static int CODE_403 = 403;

    /**
     * 参数错误
     */
    public final static int CODE_404 = 404;

    /**
     * Authorization过期或者为空
     */
    public final static int CODE_406 = 406;

    /**
     * 系统异常
     */
    public final static int CODE_500 = 500;

    public final static String MSG_200 = "操作成功";
    public final static String MSG_403 = "没有操作权限";
    public final static String MSG_404 = "参数不能为空";
    public final static String MSG_500 = "系统异常";
    public final static String MSG_SUBMIT_SUCCESS = "提交成功";
    public final static String MSG_SAVE_SUCCESS = "保存成功";
    public final static String MSG_SET_SUCCESS="设置成功";
    public final static String MSG_CREATE_SUCCESS="创建成功";
    public final static String MSG_ADD_SUCCESS = "新增成功";
    public final static String MSG_EDIT_SUCCESS = "修改成功";
    public final static String MSG_DEL_SUCCESS = "删除成功";
    public final static String MSG_FIND_SUCCESS = "查询成功";
    public final static String MSG_ADD_ERROR = "新增失败";
    public final static String MSG_EDIT_ERROR = "修改失败";
    public final static String MSG_DEL_ERROR = "删除失败";
    public final static String MSG_SELECT_ERROR = "查询失败";
    public final static String MSG_PAGE_DATA_ERROR = "分页参数错误";
    public final static String OP_MSG_SUCCESS = "操作成功";
    public final static String OP_MSG_ERROR = "操作失败";

}
